package com.ethink.order.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Date;
import com.ethink.framework.common.db.SuperEntity;

/**
 * 销售单 数据库实体
 *
 * @author default
 * @date 2022-12-19
 */
@Data
@TableName("t_sale_order")
public class SaleOrder extends SuperEntity {

    public static final String ORDER_NO ="order_no";

    public static final String ORDER_TYPE ="order_type";

    public static final String ORDER_STATUS ="order_status";

    public static final String PO_ORDER_NO ="po_order_no";

    public static final String SALE_CHANNEL ="sale_channel";

    public static final String SALE_SUB_CHANNEL ="sale_sub_channel";

    public static final String CREATE_USER_CODE ="create_user_code";

    public static final String CREATE_USER_NAME ="create_user_name";

    public static final String SUB_WAREHOUSE_CODE ="sub_warehouse_code";

    public static final String SUB_WAREHOUSE_NAME ="sub_warehouse_name";

    public static final String SHOP_ORDER_NO ="shop_order_no";

    public static final String SHOP_CODE ="shop_code";

    public static final String SHOP_NAME ="shop_name";

    public static final String CURRENCY_CODE ="currency_code";

    public static final String CURRENCY_NAME ="currency_name";

    public static final String SETTLE_MODEL ="settle_model";

    public static final String BANK ="bank";

    public static final String ACCOUNT ="account";

    public static final String SETTLE_COMPANY_CODE ="settle_company_code";

    public static final String SETTLE_COMPANY_NAME ="settle_company_name";

    public static final String CUSTOMER_CODE ="customer_code";

    public static final String CUSTOMER_NAME ="customer_name";

    public static final String CUSTOMER_ADDRESS ="customer_address";

    public static final String CUSTOMER_PHONE ="customer_phone";

    public static final String ORDER_TIME ="order_time";

    public static final String DELIVERY_TIME ="delivery_time";

    public static final String PAY_MODEL ="pay_model";

    public static final String THIRD_PAY_NAME ="third_pay_name";

    public static final String GIVE_MODEL ="give_model";

    public static final String GIVE_TYPE ="give_type";

    public static final String GIVE_TIME ="give_time";


    /** 销售单号 */
    private String orderNo;

    /** 枚举 订单类型:1-预售单(t1)|2-批量导入(t2)|3-手工建单(t3)|4-吉客云导入(t4) */
    private Integer orderType;

    /** 枚举 订单状态:1-草稿(s1)|2-已提交(s2)|3-审批通过(s3)|4-完成(s4) */
    private Integer orderStatus;

    /** PO单号 */
    private String poOrderNo;

    /** 订单来源 */
    private String saleChannel;

    /** 订单来源下级 */
    private String saleSubChannel;

    /** 制单人账号 */
    private String createUserCode;

    /** 制单人名称 */
    private String createUserName;

    /** 仓库code */
    private String subWarehouseCode;

    /** 仓库名称 */
    private String subWarehouseName;

    /** 网店订单号 */
    private String shopOrderNo;

    /** 网店code */
    private String shopCode;

    /** 网店名称 */
    private String shopName;

    /** 货币编码 */
    private String currencyCode;

    /** 货币名称 */
    private String currencyName;

    /** 枚举 结算方式:1-先款后货(t1)|2-先货后款(t2)|3-分期付款(t3)|4-其他(t4) */
    private Integer settleModel;

    /** 收款公司账户银行名称 */
    private String bank;

    /** 收款公司账户账号 */
    private String account;

    /** 收款公司code */
    private String settleCompanyCode;

    /** 收款公司名称 */
    private String settleCompanyName;

    /** 客户编码 */
    private String customerCode;

    /** 客户收货人 */
    private String customerName;

    /** 客户收货地址 */
    private String customerAddress;

    /** 客户联系电话 */
    private String customerPhone;

    /** 下单日期 */
    private Date orderTime;

    /** 发货时间 */
    private Date deliveryTime;

    /** 枚举 付款方式:1-银行收款(t1)|2-现金收款(t2)|3-货到付款(t3)|4-第三方付款(t4)|5-第三方付款抵扣(t5) */
    private String payModel;

    /** 第三方名称 */
    private String thirdPayName;

    /** 枚举 交付方式:1-客户自提(t1)|2-送货到仓(t2)|3-韩货自提(t3) */
    private String giveModel;

    /** 枚举 交付类型:1-直接交付(t1)|2-指示交付(t2) */
    private String giveType;

    /** 交付日期 */
    private Date giveTime;

}
